import Vue from 'vue';
import Router from 'vue-router';
import login from '../pages/login';
import movies from '../pages/Movies';
import music from '../pages/Music';
import mDetail from '../pages/MovieDetail';
import ency from '../pages/Ency';
import mSingle from '../pages/MusicSingle';

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', name: '登录', component: login },
    {
      path: '/movies', name: '电影', meta: {
        requireAuth: true
      }, component: movies
    },
    {
      path: '/mDetail', name: '电影详情', meta: {
        requireAuth: true
      }, component: mDetail
    },
    {
      path: '/music', name: '音乐', meta: {
        requireAuth: true
      }, component: music
    },
    {
      path: '/mSingle', name: '音乐单曲', meta: {
        requireAuth: true
      }, component: mSingle
    },
    {
      path: '/ency', name: '百科', meta: {
        requireAuth: true
      }, component: ency
    }
  ]
})
